global class InstallationApplyWebService {
    
    WebService static String setSObjectShare(String sobjectName, String rowCause, String parentId, String uid, String accessLevel) {
        try {
            SObject sObj = Schema.getGlobalDescribe().get(sobjectName).newSObject();
            sObj.put('RowCause', rowCause);
            sObj.put('ParentId', parentId);
            sObj.put('UserOrGroupId', uid);
            sObj.put('AccessLevel', accessLevel);

            insert sObj;
            return 'OK';
        } catch (Exception e) {
            return e.getMessage();
        }
    }
}